const {request}=require('./request.js');
// 基于业务封装的数据请求
module.exports={
	// 个人详细信息
	userinfo:(data)=>{
	  return request("/v1/user/info/detail","get",data,false);
	},
	// 关注列表
	concern:(data)=>{
	  return request("/v1/user/follow/list","post",data,false);
	},
	// 粉丝列表
	beantr:(data)=>{
		return request("/v1/user/fan/list","post",data,false)
	},
	// 订单列表
	orderform:(data)=>{
	  return request("/v1/order/list/user","post",data,false);
	},
	// 取消订单
	calloeder:(data)=>{
		return request("/v1/order/cancel","post",data,false,{
			'content-type':'application/x-www-form-urlencoded'
		})
	},
	// 确定收获
	harvest:(data)=>{
		return request("/v1/order/status/confirm/receipt","post",data,false,{
			'content-type':'application/x-www-form-urlencoded'
		})
	},
	// 订单详情
	particulars:(data)=>{
		return request("/v1/order/detail","post",data,false,{
			'content-type':'application/x-www-form-urlencoded'
		})
	},
	// 更换头像
	portraitser:(data)=>{
		return request("/v1/user/info/change/avatar","post",data,false,{
			'content-type':'application/x-www-form-urlencoded'
		})
	},
	// 个人发布过的动态
	dynamic:(data)=>{
		return request("/v1/community/article/user/opus/dynamic/list","post",data,false)
	},
	// 店铺的二级分类
	xclassify:() => {
		return request("/v1/commodity/category/all","get",false)
	}
}